
        <?php include("header.php");?>
		<link rel="stylesheet/less" href="<?php echo ASTRA_THEME_URI; ?>css/new.less">
        <?php include("nav.php");?>
			<div class="news-top">
				<div class="warp">
					<div class="link">
					
						<a href="<?php echo esc_url( home_url( '/' ) ); ?>">首页</a><span>></span><a href="<?php echo esc_url( home_url( '/' ) ); ?>market">算法商城</a><span>></span><?php echo _get_category_post(get_current_category_id());?>
					</div>
					<div class="title"><?php the_title(); ?></div>
					<div class="icon_list">
						<div class="list">
							<img src="<?php echo ASTRA_THEME_URI; ?>img/pic/new-icon-1.svg"/><span><?php the_time('Y年n月j日'); ?></span>
						</div>
						<div class="list">
							<img src="<?php echo ASTRA_THEME_URI; ?>img/pic/new-icon-2.svg"/><span><?php bloginfo('name'); ?></span>
						</div>
					</div>
				</div>
			</div>

			<div class="news-l">
				<div class="new-list-1 warp flex">
					<div class="new-left-1 new-content">
						<div class="single-box">
							<?php the_content(); ?>
						</div>
						<div class="end">- END -</div>
						
						<div class="let-page">
							
								<?php
								$categories = get_the_category();
								$categoryIDS = array();
								foreach ($categories as $category) {
								array_push($categoryIDS, $category->term_id); }
								$categoryIDS = implode(",", $categoryIDS);
								?>
							
							<span>
								<?php if (get_previous_post($categoryIDS)) { previous_post_link('上一篇: %link','%title',true);}
								else { echo '上一篇: 没有了';} ?>
							</span>
							<span>
								<?php if (get_next_post($categoryIDS)) { next_post_link('下一篇: %link','%title',true);}
								else { echo '下一篇: 没有了';} ?>
							</span>
						</div>
					</div>
                    <div class="new-right-1">
						<div class="title">热门算法</div>
						<?php $category = get_the_category();$a = $category[0]->cat_ID;?>
						<?php $c= get_category_top_parent_id($a) ?>
						<?php $display_categories = array($c); foreach ($display_categories as $category) { ?>
						<?php query_posts("showposts=5&cat=$category&tag=hot")?>
						<?php $index = 1;?>
						<?php while (have_posts()) : the_post(); ?>
						<div class="rank">
							<span><?php echo $index;?></span>
							<a href="<?php the_permalink() ?>"><?php echo mb_strimwidth(strip_tags(apply_filters('the_title()', $post->post_title)), 0,40,""); ?></a>
						</div>
						<?php $index++;?>
						<?php endwhile; ?>
						
						<?php } wp_reset_query();?>
							
						
					</div>
				</div>

			</div>

			<?php include("footer.php");?>
			<script>
				new Vue({
					el: '#app',
					data: function() {
						return {

						}
					},
					created() {

					},
					mounted() {

					},
					methods: {

					}
				})
			</script>
	</body>
</html>